package auctionhaus

import grails.test.*
import com.auctionhaus.Customer

class CustomerServiceIntegrationTests extends GroovyTestCase {
    def CustomerService
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }
    //S-1: Create a Grails service method that supports creating a new customer (integration test)
    void testCreateCustomerByService() {
        def customer = CustomerService.createCustomer("brittany@spears.com", "password")
        def foundCustomer = Customer.findByEmailAddress("brittany@spears.com")
        assertEquals customer, foundCustomer
    }
}
